﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;

namespace DevWeb.Biztalk.DeploymentSettings.Data.CodeFirst.Configurations
{
    public class UserEnvironmentRightConfiguration : EntityTypeConfiguration<UserEnvironmentRight>
    {

        public UserEnvironmentRightConfiguration()
        {
            HasKey(p => p.Id);
            Property(p => p.Right).IsRequired().HasColumnName("UserRight"); 

            HasRequired(p => p.TargetEnvironment);

            HasRequired(p => p.UserEnvironment);

            





        }
    }
}
